from rank_util import get_real_time_rank
from search_util import search_hot_mblog

real_time_rank, rise_rank = get_real_time_rank()
for i in range(0, 51):

    print("热搜榜：", real_time_rank[i]['title'])
for i in range(0, 16):
    print("实时上升热搜榜：", rise_rank[i]['title'])
    # hot_blog = search_hot_mblog(real_time_rank[i]['keyword'], 2)
    # index = 1
    # for blog in hot_blog:
    #     print('******微博内容******')
    #     print(index, '、', blog.mblog['content'])
    #     comments = blog.get_comments()
    #     print('创建时间：', blog.mblog['created_at'])
    #     print("******对应评论*******")
    #     for comment in comments:
    #         print(comment.comment['content'])
    #     index = index + 1
